package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.HealthManager;
import com.itheima.pojo.Member;

import java.util.List;
import java.util.Map;

public interface MemberService {
    //根据手机号查询会员信息
    Member findByTelephone(String telephone);
    //会员注册
    void add(Member member);
    //通过日期统计会员数量
    List<Integer> findMemberCountByMonth(List<String> list);
    //预约编辑修改会员信息
    void updateMember(Member member);
    //修改会员个人信息
    void edit(Member member);
    //根据日期查询订单信息
    List<Map> findOrderByDate(Map<String, Object> map);
    //根据年龄段统计会员
    public Map<String, Object> findAgeGroup();

    //----------------------------------------会员
    //查询分页
    PageResult findPage(QueryPageBean queryPageBean);

    void backendAdd(Member member)throws Exception;

    void deleteById(Integer id);

    void editMember(Member member)throws Exception;

    Member findById(Integer id);

    List<HealthManager> findDate();

    List<Map> getReportData(Integer[] ids);
}
